﻿using System;

namespace DatabaseStuff
{
    /// <summary>
    /// Interface for manipulating a single field in a database
    /// </summary>
    public interface IDBField
    {
        /// <summary>
        /// Get the name of this field
        /// </summary>
        string Name { get; }

        /// <summary>
        /// Get a value indicating whether this field is the primary key
        /// of the database
        /// </summary>
        bool IsPrimaryKey { get; }

        /// <summary>
        /// Get the type of the data stored in this field
        /// </summary>
        DBDataType Type { get; }
    }
}
